  .c-markdown-wrapper {
    position: relative;

    :deep(.v-md-editor) {
      border-radius: 6px;
      border: 1px solid var(--border-color, #e1e5e9);

      &:hover {
        border-color: var(--primary-color, #18a058);
      }

      &:focus-within {
        border-color: var(--primary-color, #18a058);
        box-shadow: 0 0 0 2px var(--primary-color-suppl, rgba(24, 160, 88, 0.2));
      }

      // 禁用状态样式
      &.disabled {
        background-color: var(--input-color-disabled, #f5f5f5);
        cursor: not-allowed;

        .v-md-editor__editor {
          cursor: not-allowed;
        }
      }
    }

    // 字数统计样式
    .word-count {
      position: absolute;
      bottom: 8px;
      right: 12px;
      font-size: 12px;
      color: var(--text-color-3, #a0a0a0);
      background: var(--card-color, #fff);
      padding: 2px 6px;
      border-radius: 4px;
      z-index: 10;

      &.exceed {
        color: var(--error-color, #d03050);
      }
    }
  }
